//
//  CCYRecommendDetailView.m
//  模拟-百思不得姐
//
//  Created by 程春玉 on 16/8/9.
//  Copyright © 2016年 colin. All rights reserved.
//

#import "CCYRecommendDetailView.h"

@implementation CCYRecommendDetailView

- (void)setMessageWithDic:(NSDictionary *)dic
{
    [self.backView sd_setImageWithURL:[NSURL URLWithString:dic[@"background_image"]]];
    self.headView.layer.cornerRadius = 30.f;
    self.headView.clipsToBounds = YES;
    [self.headView sd_setImageWithURL:[NSURL URLWithString:dic[@"profile_image"]]];
    self.name.text = dic[@"username"];
    self.LVLabel.text = [NSString stringWithFormat:@"%@", dic[@"level"]];
    self.scoreLabel.text = [NSString stringWithFormat:@"%@", dic[@"credit"]];
    self.post.text = [NSString stringWithFormat:@"%@", dic[@"follow_count"]];
    self.fans.text = [NSString stringWithFormat:@"%@", dic[@"fans_count"]];
    self.certification.text = dic[@"v_desc"];
    self.intruduct.text = self.certification.text;
    self.tiezi.text = [NSString stringWithFormat:@"%@", dic[@"tiezi_count"]];
    self.fenxiang.text = [NSString stringWithFormat:@"%@", dic[@"share_count"]];
    self.pinglun.text = [NSString stringWithFormat:@"%@", dic[@"comment_count"]];
}


+ (instancetype)viewDidLoad
{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
}

@end
